const mongoose = require("../db");

const schema = new mongoose.Schema(
  {
    workId: { type: String },
    workTitle: { type: String },
    userid: String,
    username: String,
    workCover: String,
    workImgs: {
      type: Array,
    },
    workDesc: {
      type: String,
    },
    workScore: {
      type: Number,
    },
  },
  {
    timestamps: true,
  }
);

module.exports = mongoose.model("HomeWork", schema);
